/*
 * LocationResponse
 *
 * Copyright 2008-2009 Centro Andaluz de Innovación y Tecnologías de la
 * Información y las Comunicaciones (CITIC). All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 *
 * Please contact CITIC - Edificio CITIC, C/ Marie Curie, 6 Parque
 * Tecnológico de Andalucía 29590 - Campanillas, Málaga, Spain
 * or visit www.citic.es, if you need additional information or
 * have any questions.
 */

package es.citic.puedes.weatherservice.impl;

/**
 * Represents location data from response Free Weather API
 */
class LocationResponse {
	LocationResult search_api;

	public LocationResult getSearch_api() {
		return this.search_api;
	}

	public void setSearch_api(LocationResult search_api) {
		this.search_api = search_api;
	}
}

/**
 * Location result from Free Weather API
 * 
 */
class LocationResult {
	LocationData[] result;

	public LocationData[] getResult() {
		return this.result;
	}

	public void setResult(LocationData[] result) {
		this.result = result;
	}

}

/**
 * Location response from Free Weather API
 * 
 */
class LocationData {
	private Double longitude;
	private Double latitude;
	private Long population;
	private Value[] country;
	private Value[] areaName;
	private Value[] weatherUrl;
	private Value[] region;

	public Value[] getCountry() {
		return this.country;
	}

	public void setCountry(Value[] country) {
		this.country = country;
	}

	public Long getPopulation() {
		return this.population;
	}

	public void setPopulation(Long population) {
		this.population = population;
	}

	public Double getLongitude() {
		return this.longitude;
	}

	public Double getLatitude() {
		return this.latitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Value[] getAreaName() {
		return this.areaName;
	}

	public void setAreaName(Value[] areaName) {
		this.areaName = areaName;
	}

	public Value[] getWeatherUrl() {
		return this.weatherUrl;
	}

	public void setWeatherUrl(Value[] weatherUrl) {
		this.weatherUrl = weatherUrl;
	}

	public Value[] getRegion() {
		return this.region;
	}

	public void setRegion(Value[] region) {
		this.region = region;
	}

}

class Value {
	private String value;

	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
